/* 图标 */
@font-face {
  font-family: 'iconfont';
  src: url('iconfont.ttf?t=1693649223969') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 20px;
  font-style: normal;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* .input-group {
  position: relative;
} */

.eye {
  position: absolute;
  bottom: 5px;
  right: 20px;
  cursor: pointer;
  background-color: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  object-fit: inherit;
}

a {
  line-height: 30px;
  text-decoration: none;
  color: #fff;
}

input,
button,
div {
  border-radius: 15px !important;
}

body {
  /* display: flex; */
  height: 100vh;
  background-image: url(../img/rest\ \(4\).jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  /* 当内容高度大于图片高度时 背景图像的位置相对于 viewport 固定
  background-attachment: fixed; */
}

.box {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  /* 玻璃磨砂质感 */
  backdrop-filter: blur(5px);
}

.login {
  padding: 20px 40px;
  width: 450px;
  height: 395px;
  background-color: rgba(0, 0, 0, 0.4);
}

.nav-conter input:first-child {
  margin-top: 55px;
}

.nav-conter input {
  margin-top: 20px;
  height: 40px;
  width: 300px;
}

.tab-nav {
  display: flex;
  justify-content: space-between;
}

.tab-nav a {
  position: relative;
  font-size: 20px;
  color: #fff;
}

.tab-nav a::before {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  position: absolute;
  bottom: -4px;
  background-color: #e0e0e0;
  border-radius: 2px;
}

.tab-nav a.active::before {
  width: 100%;
  left: 0;
}

.tab-pane {
  /* display: none; */
  text-align: center;
  margin: 15px auto 0;
  width: 300px;
  height: 300px;
}

.input-group {
  position: relative;
}

.input {
  border: solid 2px #d3d3d3;
  background: none;
  padding: 16px;
  font-size: 16px;
  color: #f5f5f5;
}

input::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #fff;
}

input:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #fff;
}

input::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #fff;
}

input:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: #fff;
}

.input:focus,
input:valid {
  /* 获取焦点的颜色 */
  outline: none;
  border: 2px solid #fff;
}

.tab-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-pane span {
  cursor: pointer;
  display: block;
  margin-top: 10px;
}

.login .ures {
  margin-top: 6px;
  text-align: center;
  color: #e0e0e0;
  font-size: 16px;
}

.login .ures input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  /* 表单与文字对齐 */
  vertical-align: middle;
}

.reglogin {
  text-align: center;
}

.login button {
  margin-left: 20px;
  margin-top: 10px;
  width: 80px;
  height: 35px;
  border: solid 2px #d3d3d3;
  cursor: pointer;
}

.login button:first-child {
  margin-left: 0;
}

/* 提示框 */
.alert {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  display: flex;
  justify-content: center;
  transition: .5s;
  opacity: 0;
}

.alert.show {
  opacity: 1;
}